|
2000W / 48V LLC Battery-Charger
V1.00
|
Universal Serial Interface Channel(USIC) driver for serial communication. More...
|
Classes | |
| struct | XMC_USIC_CH |
Macros | |
| #define | XMC_USIC0 ((XMC_USIC_t *)USIC0_BASE) |
| #define | XMC_USIC0_CH0 ((XMC_USIC_CH_t *)USIC0_CH0_BASE) |
| #define | XMC_USIC0_CH1 ((XMC_USIC_CH_t *)USIC0_CH1_BASE) |
| #define | USIC_CH_DXCR_DSEL_Msk USIC_CH_DX0CR_DSEL_Msk |
| #define | USIC_CH_DXCR_DSEL_Pos USIC_CH_DX0CR_DSEL_Pos |
| #define | USIC_CH_DXCR_SFSEL_Pos USIC_CH_DX0CR_SFSEL_Pos |
| #define | USIC_CH_DXCR_SFSEL_Msk USIC_CH_DX0CR_SFSEL_Msk |
| #define | USIC_CH_DXCR_DPOL_Msk USIC_CH_DX0CR_DPOL_Msk |
| #define | USIC_CH_DXCR_DFEN_Msk USIC_CH_DX0CR_DFEN_Msk |
| #define | USIC_CH_DXCR_DSEN_Msk USIC_CH_DX0CR_DSEN_Msk |
| #define | USIC_CH_DXCR_CM_Pos USIC_CH_DX0CR_CM_Pos |
| #define | USIC_CH_DXCR_CM_Msk USIC_CH_DX0CR_CM_Msk |
| #define | USIC_CH_DXCR_INSW_Msk USIC_CH_DX0CR_INSW_Msk |
| #define | USIC_CH_DXCR_INSW_pos USIC_CH_DX0CR_INSW_Pos |
Universal Serial Interface Channel(USIC) driver for serial communication.
The Universal Serial Interface Channel(USIC) module is a flexible interface module covering several serial communication protocols. A USIC module contains two independent communication channels named USICx_CH0 and USICx_CH1, with x being the number of the USIC module. The user can program, during run-time, which protocol will be handled by each communication channel and which pins are used. The driver provides APIs, configuration structures and enumerations to configure common features of multiple serial communication protocols.
USIC driver features:
| #define USIC_CH_DXCR_CM_Msk USIC_CH_DX0CR_CM_Msk |
Common mask for CM bitfield mask in DXnCR register
Definition at line 152 of file xmc_usic.h.
Referenced by XMC_USIC_CH_SetInputTriggerCombinationMode().
| #define USIC_CH_DXCR_CM_Pos USIC_CH_DX0CR_CM_Pos |
Common mask for CM bitfield position in DXnCR register
Definition at line 151 of file xmc_usic.h.
Referenced by XMC_USIC_CH_SetInputTriggerCombinationMode().
| #define USIC_CH_DXCR_DFEN_Msk USIC_CH_DX0CR_DFEN_Msk |
Common mask for DFEN bitfield mask in DXnCR register
Definition at line 149 of file xmc_usic.h.
Referenced by XMC_USIC_CH_DisableInputDigitalFilter(), and XMC_USIC_CH_EnableInputDigitalFilter().
| #define USIC_CH_DXCR_DPOL_Msk USIC_CH_DX0CR_DPOL_Msk |
Common mask for DPOL bitfield mask in DXnCR register
Definition at line 148 of file xmc_usic.h.
Referenced by XMC_USIC_CH_DisableInputInversion(), and XMC_USIC_CH_EnableInputInversion().
| #define USIC_CH_DXCR_DSEL_Msk USIC_CH_DX0CR_DSEL_Msk |
Common mask for DSEL bitfield mask in DXnCR register
Definition at line 144 of file xmc_usic.h.
Referenced by XMC_USIC_CH_SetInputSource().
| #define USIC_CH_DXCR_DSEL_Pos USIC_CH_DX0CR_DSEL_Pos |
Common mask for DSEL bitfield position in DXnCR register
Definition at line 145 of file xmc_usic.h.
Referenced by XMC_USIC_CH_SetInputSource().
| #define USIC_CH_DXCR_DSEN_Msk USIC_CH_DX0CR_DSEN_Msk |
Common mask for DSEN bitfield mask in DXnCR register
Definition at line 150 of file xmc_usic.h.
Referenced by XMC_USIC_CH_DisableInputSync(), and XMC_USIC_CH_EnableInputSync().
| #define USIC_CH_DXCR_INSW_Msk USIC_CH_DX0CR_INSW_Msk |
Common mask for INSW bitfield mask in DXnCR register
Definition at line 153 of file xmc_usic.h.
Referenced by XMC_USIC_CH_ConnectInputDataShiftToDataInput(), and XMC_USIC_CH_ConnectInputDataShiftToPPP().
| #define USIC_CH_DXCR_INSW_pos USIC_CH_DX0CR_INSW_Pos |
Common mask for INSW bitfield position in DXnCR register
Definition at line 154 of file xmc_usic.h.
| #define USIC_CH_DXCR_SFSEL_Msk USIC_CH_DX0CR_SFSEL_Msk |
Common mask for SFSEL bitfield mask in DXnCR register
Definition at line 147 of file xmc_usic.h.
Referenced by XMC_USIC_CH_SetInputSamplingFreq().
| #define USIC_CH_DXCR_SFSEL_Pos USIC_CH_DX0CR_SFSEL_Pos |
Common mask for SFSEL bitfield position in DXnCR register
Definition at line 146 of file xmc_usic.h.
| #define XMC_USIC0 ((XMC_USIC_t *)USIC0_BASE) |
USIC0 module base address
Definition at line 128 of file xmc_usic.h.
Referenced by XMC_USIC_CH_Enable(), and XMC_USIC_IsModuleValid().
| #define XMC_USIC0_CH0 ((XMC_USIC_CH_t *)USIC0_CH0_BASE) |
USIC0 channel 0 base address
Definition at line 129 of file xmc_usic.h.
Referenced by XMC_USIC_CH_Enable(), and XMC_USIC_IsChannelValid().
| #define XMC_USIC0_CH1 ((XMC_USIC_CH_t *)USIC0_CH1_BASE) |
USIC0 channel 1 base address
Definition at line 130 of file xmc_usic.h.
Referenced by XMC_USIC_CH_Enable(), and XMC_USIC_IsChannelValid().
USIC channel baudrate generator divider mode
USIC channel baudrate generator clock source
| typedef enum XMC_USIC_CH_BRG_MASTER_CLOCK_PASSIVE_LEVEL XMC_USIC_CH_BRG_MASTER_CLOCK_PASSIVE_LEVEL_t |
USIC channel baudrate generator master clock passive level
USIC channel baudrate generator shift clock output
USIC channel baudrate generator shift clock passive level
USIC channel data output mode
| typedef enum XMC_USIC_CH_EVENT XMC_USIC_CH_EVENT_t |
USIC channel events
| typedef enum XMC_USIC_CH_FIFO_SIZE XMC_USIC_CH_FIFO_SIZE_t |
USIC channel receive FIFO size
USIC channel input combination mode
USIC channel input source sampling frequency
| typedef enum XMC_USIC_CH_INPUT XMC_USIC_CH_INPUT_t |
USIC channel inputs
USIC channel interrupt node pointers
| typedef enum XMC_USIC_CH_KERNEL_MODE XMC_USIC_CH_KERNEL_MODE_t |
USIC channel kernel mode
| typedef enum XMC_USIC_CH_OPERATING_MODE XMC_USIC_CH_OPERATING_MODE_t |
USIC channel operating mode
| typedef enum XMC_USIC_CH_PARITY_MODE XMC_USIC_CH_PARITY_MODE_t |
USIC channel parity mode
USIC channel output signal passive data level
| typedef enum XMC_USIC_CH_RBUF_STATUS XMC_USIC_CH_RBUF_STATUS_t |
USIC channel receive buffer status
USIC channel receive FIFO event configuration
| typedef enum XMC_USIC_CH_RXFIFO_EVENT XMC_USIC_CH_RXFIFO_EVENT_t |
USIC channel receive FIFO status
USIC channel receive FIFO interrupt node pointers
| typedef enum XMC_USIC_CH_SHIFT_DIRECTION XMC_USIC_CH_SHIFT_DIRECTION_t |
USIC channel shift direction. Defines the shift direction of the data words for transmission and reception
USIC channel data transmission start modes. Data shifted out of the transmit pin depends on the value configured for the TDEN bitfield of the TCSR register. Following enum values are used for configuring the TCSR->TDEN bitfield.
| typedef enum XMC_USIC_CH_STATUS XMC_USIC_CH_STATUS_t |
USIC channel driver status
| typedef struct XMC_USIC_CH XMC_USIC_CH_t |
USIC channel structure.
The members of the structure are same as in the device header file, except for some registers. DX0CR, DX1CR, DX2CR, DX3CR, DX4CR and DX5CR are replaced with the array DXCR[6]. TBUF0 to TBUF31 are replaced with TBUF[32]. IN0 to IN31 are replaced with IN[32].
| typedef enum XMC_USIC_CH_TBUF_STATUS_SET XMC_USIC_CH_TBUF_STATUS_SET_t |
USIC channel data transmit buffer status modification
| typedef enum XMC_USIC_CH_TBUF_STATUS XMC_USIC_CH_TBUF_STATUS_t |
USIC channel data transmit buffer status
USIC channel transmit FIFO event configuration
| typedef enum XMC_USIC_CH_TXFIFO_EVENT XMC_USIC_CH_TXFIFO_EVENT_t |
USIC channel transmit FIFO status
USIC channel transmit FIFO interrupt node pointers
| typedef USIC_GLOBAL_TypeDef XMC_USIC_t |
USIC module structure
Definition at line 475 of file xmc_usic.h.
USIC channel output signal passive data level
| Enumerator | |
|---|---|
| XMC_USIC_CH_PASSIVE_DATA_LEVEL0 | Passive level(idle mode signal level) 0 |
| XMC_USIC_CH_PASSIVE_DATA_LEVEL1 | Passive level(idle mode signal level) 1 |
Definition at line 325 of file xmc_usic.h.
USIC channel baudrate generator divider mode
Definition at line 413 of file xmc_usic.h.
USIC channel baudrate generator clock source
Definition at line 404 of file xmc_usic.h.
USIC channel baudrate generator master clock passive level
Definition at line 423 of file xmc_usic.h.
USIC channel baudrate generator shift clock output
Definition at line 443 of file xmc_usic.h.
USIC channel baudrate generator shift clock passive level
Definition at line 432 of file xmc_usic.h.
USIC channel data output mode
| Enumerator | |
|---|---|
| XMC_USIC_CH_DATA_OUTPUT_MODE_NORMAL | Data output normal mode |
| XMC_USIC_CH_DATA_OUTPUT_MODE_INVERTED | Data output inverted mode |
Definition at line 287 of file xmc_usic.h.
| enum XMC_USIC_CH_EVENT |
USIC channel events
Definition at line 263 of file xmc_usic.h.
USIC channel receive FIFO size
Definition at line 334 of file xmc_usic.h.
| enum XMC_USIC_CH_INPUT |
USIC channel inputs
Definition at line 204 of file xmc_usic.h.
USIC channel input combination mode
Definition at line 226 of file xmc_usic.h.
USIC channel input source sampling frequency
Definition at line 217 of file xmc_usic.h.
USIC channel interrupt node pointers
Definition at line 251 of file xmc_usic.h.
USIC channel kernel mode
Definition at line 181 of file xmc_usic.h.
USIC channel operating mode
Definition at line 192 of file xmc_usic.h.
USIC channel parity mode
| Enumerator | |
|---|---|
| XMC_USIC_CH_PARITY_MODE_NONE | Disable parity mode |
| XMC_USIC_CH_PARITY_MODE_EVEN | Enable even parity mode |
| XMC_USIC_CH_PARITY_MODE_ODD | Enable odd parity mode |
Definition at line 277 of file xmc_usic.h.
USIC channel receive buffer status
| Enumerator | |
|---|---|
| XMC_USIC_CH_RBUF_STATUS_DATA_VALID0 | RBUF0 data has not yet been read out |
| XMC_USIC_CH_RBUF_STATUS_DATA_VALID1 | RBUF1 data has not yet been read out |
Definition at line 316 of file xmc_usic.h.
USIC channel receive FIFO status
Definition at line 394 of file xmc_usic.h.
USIC channel receive FIFO event configuration
Definition at line 384 of file xmc_usic.h.
USIC channel receive FIFO interrupt node pointers
Definition at line 375 of file xmc_usic.h.
USIC channel shift direction. Defines the shift direction of the data words for transmission and reception
Definition at line 453 of file xmc_usic.h.
USIC channel data transmission start modes. Data shifted out of the transmit pin depends on the value configured for the TDEN bitfield of the TCSR register. Following enum values are used for configuring the TCSR->TDEN bitfield.
Definition at line 240 of file xmc_usic.h.
| enum XMC_USIC_CH_STATUS |
USIC channel driver status
| Enumerator | |
|---|---|
| XMC_USIC_CH_STATUS_OK | USIC driver status : OK |
| XMC_USIC_CH_STATUS_ERROR | USIC driver status : ERROR |
| XMC_USIC_CH_STATUS_BUSY | USIC driver status : BUSY |
Definition at line 171 of file xmc_usic.h.
USIC channel data transmit buffer status
| Enumerator | |
|---|---|
| XMC_USIC_CH_TBUF_STATUS_IDLE | Transfer buffer is currently idle |
| XMC_USIC_CH_TBUF_STATUS_BUSY | Transfer buffer is currently busy |
Definition at line 296 of file xmc_usic.h.
USIC channel data transmit buffer status modification
| Enumerator | |
|---|---|
| XMC_USIC_CH_TBUF_STATUS_SET_BUSY | Set Transfer buffer status to busy |
| XMC_USIC_CH_TBUF_STATUS_SET_IDLE | Set Transfer buffer status to idle |
Definition at line 307 of file xmc_usic.h.
USIC channel transmit FIFO status
| Enumerator | |
|---|---|
| XMC_USIC_CH_TXFIFO_EVENT_STANDARD | Transmit FIFO status: Standard event |
| XMC_USIC_CH_TXFIFO_EVENT_ERROR | Transmit FIFO status: Error event |
Definition at line 366 of file xmc_usic.h.
USIC channel transmit FIFO event configuration
| Enumerator | |
|---|---|
| XMC_USIC_CH_TXFIFO_EVENT_CONF_STANDARD | Enable FIFO standard transmit interrupt |
| XMC_USIC_CH_TXFIFO_EVENT_CONF_ERROR | Enable transmit FIFO error interrupt |
Definition at line 357 of file xmc_usic.h.
USIC channel transmit FIFO interrupt node pointers
Definition at line 348 of file xmc_usic.h.
| void XMC_USIC_CH_ConfigExternalInputSignalToBRG | ( | XMC_USIC_CH_t *const | channel, |
| const uint16_t | pdiv, | ||
| const uint32_t | oversampling, | ||
| const XMC_USIC_CH_INPUT_COMBINATION_MODE_t | combination_mode | ||
| ) |
| channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
| pdiv | Desired divider for the external frequency input. Range: minimum value = 1, maximum value = 1024 |
| oversampling | Required oversampling. The value indicates the number of time quanta for one symbol of data. This can be related to the number of samples for each logic state of the data signal. Range: 1 to 32. Value should be chosen based on the protocol used. |
| combination_mode | Selects which edge of the synchronized(and optionally filtered) signal DXnS actives the trigger output DXnT of the input stage. |
Definition at line 180 of file xmc_usic.c.
Referenced by XMC_I2C_CH_ConfigExternalInputSignalToBRG(), and XMC_SPI_CH_ConfigExternalInputSignalToBRG().


| __STATIC_INLINE void XMC_USIC_CH_ConfigureShiftClockOutput | ( | XMC_USIC_CH_t *const | channel, |
| const XMC_USIC_CH_BRG_SHIFT_CLOCK_PASSIVE_LEVEL_t | passive_level, | ||
| const XMC_USIC_CH_BRG_SHIFT_CLOCK_OUTPUT_t | clock_output | ||
| ) |
| channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
| passive_level | Passive level for the clock output. Range: XMC_USIC_CH_BRG_SHIFT_CLOCK_PASSIVE_LEVEL_0_DELAY_DISABLED, XMC_USIC_CH_BRG_SHIFT_CLOCK_PASSIVE_LEVEL_0_DELAY_ENABLED, XMC_USIC_CH_BRG_SHIFT_CLOCK_PASSIVE_LEVEL_1_DELAY_DISABLED, XMC_USIC_CH_BRG_SHIFT_CLOCK_PASSIVE_LEVEL_1_DELAY_ENABLED, |
| clock_output | Shift clock source selection. Range: Use XMC_USIC_CH_BRG_SHIFT_CLOCK_OUTPUT_SCLK, XMC_USIC_CH_BRG_SHIFT_CLOCK_OUTPUT_DX1 |
Definition at line 2049 of file xmc_usic.h.
Referenced by XMC_I2S_CH_ConfigureShiftClockOutput(), and XMC_SPI_CH_ConfigureShiftClockOutput().

| __STATIC_INLINE void XMC_USIC_CH_ConnectInputDataShiftToDataInput | ( | XMC_USIC_CH_t *const | channel, |
| const XMC_USIC_CH_INPUT_t | input | ||
| ) |
| channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
| input | USIC channel input stage of type XMC_USIC_CH_INPUT_t. Range: XMC_USIC_CH_INPUT_DX0 to XMC_USIC_CH_INPUT_DX5 |
Definition at line 749 of file xmc_usic.h.
| __STATIC_INLINE void XMC_USIC_CH_ConnectInputDataShiftToPPP | ( | XMC_USIC_CH_t *const | channel, |
| const XMC_USIC_CH_INPUT_t | input | ||
| ) |
| channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
| input | USIC channel input stage of type XMC_USIC_CH_INPUT_t. Range: XMC_USIC_CH_INPUT_DX0 to XMC_USIC_CH_INPUT_DX5 |
Definition at line 727 of file xmc_usic.h.
| void XMC_USIC_CH_Disable | ( | XMC_USIC_CH_t *const | channel | ) |
| channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
Definition at line 115 of file xmc_usic.c.
| __STATIC_INLINE void XMC_USIC_CH_DisableDelayCompensation | ( | XMC_USIC_CH_t *const | channel | ) |
| channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
Definition at line 820 of file xmc_usic.h.
Referenced by XMC_I2S_CH_DisableDelayCompensation(), and XMC_SPI_CH_DisableDelayCompensation().

| __STATIC_INLINE void XMC_USIC_CH_DisableEvent | ( | XMC_USIC_CH_t *const | channel, |
| const uint32_t | event | ||
| ) |
| channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
| event | Bit mask of the channel events to be disabled. Use XMC_USIC_CH_EVENT_t for the bit masks. Range: XMC_USIC_CH_EVENT_RECEIVE_START, XMC_USIC_CH_EVENT_DATA_LOST etc. Multiple events can be combined using OR operation. |
Definition at line 1138 of file xmc_usic.h.
| __STATIC_INLINE void XMC_USIC_CH_DisableFrameLengthControl | ( | XMC_USIC_CH_t *const | channel | ) |
| channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
Definition at line 1293 of file xmc_usic.h.
| __STATIC_INLINE void XMC_USIC_CH_DisableInputDigitalFilter | ( | XMC_USIC_CH_t *const | channel, |
| const XMC_USIC_CH_INPUT_t | input | ||
| ) |
| channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
| input | USIC channel input stage of type XMC_USIC_CH_INPUT_t. Range: XMC_USIC_CH_INPUT_DX0 to XMC_USIC_CH_INPUT_DX5 |
Definition at line 857 of file xmc_usic.h.
Referenced by XMC_UART_CH_DisableInputDigitalFilter().

| __STATIC_INLINE void XMC_USIC_CH_DisableInputInversion | ( | XMC_USIC_CH_t *const | channel, |
| const XMC_USIC_CH_INPUT_t | input | ||
| ) |
| channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
| input | USIC channel input stage of type XMC_USIC_CH_INPUT_t. Range: XMC_USIC_CH_INPUT_DX0 to XMC_USIC_CH_INPUT_DX5 |
Definition at line 787 of file xmc_usic.h.
Referenced by XMC_I2S_CH_DisableInputInversion(), XMC_SPI_CH_DisableInputInversion(), and XMC_UART_CH_DisableInputInversion().

| __STATIC_INLINE void XMC_USIC_CH_DisableInputSync | ( | XMC_USIC_CH_t *const | channel, |
| const XMC_USIC_CH_INPUT_t | input | ||
| ) |
| channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
| input | USIC channel input stage of type XMC_USIC_CH_INPUT_t. Range: XMC_USIC_CH_INPUT_DX0 to XMC_USIC_CH_INPUT_DX5 |
Definition at line 894 of file xmc_usic.h.
Referenced by XMC_UART_CH_DisableInputSync().

| __STATIC_INLINE void XMC_USIC_CH_DisableTBUFDataValidTrigger | ( | XMC_USIC_CH_t *const | channel | ) |
| channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
Definition at line 1328 of file xmc_usic.h.
| __STATIC_INLINE void XMC_USIC_CH_DisableTimeMeasurement | ( | XMC_USIC_CH_t *const | channel | ) |
| channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
Definition at line 2007 of file xmc_usic.h.
| void XMC_USIC_CH_Enable | ( | XMC_USIC_CH_t *const | channel | ) |
| channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
Definition at line 79 of file xmc_usic.c.
Referenced by XMC_I2S_CH_Init(), XMC_SPI_CH_Init(), and XMC_UART_CH_Init().


| __STATIC_INLINE void XMC_USIC_CH_EnableDelayCompensation | ( | XMC_USIC_CH_t *const | channel | ) |
| channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
Definition at line 804 of file xmc_usic.h.
Referenced by XMC_I2S_CH_EnableDelayCompensation(), and XMC_SPI_CH_EnableDelayCompensation().

| __STATIC_INLINE void XMC_USIC_CH_EnableEvent | ( | XMC_USIC_CH_t *const | channel, |
| const uint32_t | event | ||
| ) |
| channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
| event | Bit mask of the channel events to be enabled. Use XMC_USIC_CH_EVENT_t for the bit masks. Range: XMC_USIC_CH_EVENT_RECEIVE_START, XMC_USIC_CH_EVENT_DATA_LOST etc. Multiple events can be combined using OR operation. |
Definition at line 1117 of file xmc_usic.h.
| __STATIC_INLINE void XMC_USIC_CH_EnableFrameLengthControl | ( | XMC_USIC_CH_t *const | channel | ) |
| channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
Definition at line 1271 of file xmc_usic.h.
| __STATIC_INLINE void XMC_USIC_CH_EnableInputDigitalFilter | ( | XMC_USIC_CH_t *const | channel, |
| const XMC_USIC_CH_INPUT_t | input | ||
| ) |
| channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
| input | USIC channel input stage of type XMC_USIC_CH_INPUT_t. Range: XMC_USIC_CH_INPUT_DX0 to XMC_USIC_CH_INPUT_DX5 |
Definition at line 839 of file xmc_usic.h.
Referenced by XMC_UART_CH_EnableInputDigitalFilter().

| __STATIC_INLINE void XMC_USIC_CH_EnableInputInversion | ( | XMC_USIC_CH_t *const | channel, |
| const XMC_USIC_CH_INPUT_t | input | ||
| ) |
| channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
| input | USIC channel input stage of type XMC_USIC_CH_INPUT_t. Range: XMC_USIC_CH_INPUT_DX0 to XMC_USIC_CH_INPUT_DX5 |
Definition at line 768 of file xmc_usic.h.
Referenced by XMC_I2S_CH_EnableInputInversion(), XMC_SPI_CH_EnableInputInversion(), and XMC_UART_CH_EnableInputInversion().

| __STATIC_INLINE void XMC_USIC_CH_EnableInputSync | ( | XMC_USIC_CH_t *const | channel, |
| const XMC_USIC_CH_INPUT_t | input | ||
| ) |
| channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
| input | USIC channel input stage of type XMC_USIC_CH_INPUT_t. Range: XMC_USIC_CH_INPUT_DX0 to XMC_USIC_CH_INPUT_DX5 |
Definition at line 876 of file xmc_usic.h.
Referenced by XMC_UART_CH_EnableInputSync().

| __STATIC_INLINE void XMC_USIC_CH_EnableTBUFDataValidTrigger | ( | XMC_USIC_CH_t *const | channel | ) |
| channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
Definition at line 1311 of file xmc_usic.h.
| __STATIC_INLINE void XMC_USIC_CH_EnableTimeMeasurement | ( | XMC_USIC_CH_t *const | channel | ) |
| channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
Definition at line 1990 of file xmc_usic.h.
| __STATIC_INLINE uint32_t XMC_USIC_CH_GetCaptureTimerValue | ( | const XMC_USIC_CH_t *const | channel | ) |
| channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
Definition at line 1053 of file xmc_usic.h.
| __STATIC_INLINE uint32_t XMC_USIC_CH_GetReceiveBufferStatus | ( | XMC_USIC_CH_t *const | channel | ) |
API to get receive buffer status.
| channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
Definition at line 1206 of file xmc_usic.h.
Referenced by L0_Eeprom_SPI_16Bit_Senden(), and L0_Eeprom_SPI_8Bit_Senden().

| __STATIC_INLINE XMC_USIC_CH_TBUF_STATUS_t XMC_USIC_CH_GetTransmitBufferStatus | ( | XMC_USIC_CH_t *const | channel | ) |
| channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
Definition at line 1182 of file xmc_usic.h.
Referenced by L0_Eeprom_SPI_16Bit_Senden(), L0_Eeprom_SPI_8Bit_Senden(), XMC_I2C_CH_MasterReceiveAck(), XMC_I2C_CH_MasterReceiveNack(), XMC_I2C_CH_MasterStop(), XMC_I2C_CH_MasterTransmit(), XMC_I2C_CH_SlaveTransmit(), XMC_I2S_CH_Stop(), XMC_I2S_CH_Transmit(), XMC_SPI_CH_Stop(), XMC_SPI_CH_Transmit(), XMC_UART_CH_Stop(), and XMC_UART_CH_Transmit().

| __STATIC_INLINE void XMC_USIC_CH_RXFIFO_ClearEvent | ( | XMC_USIC_CH_t *const | channel, |
| const uint32_t | event | ||
| ) |
| channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
| event | Receive FIFO events to be cleared. Range: XMC_USIC_CH_RXFIFO_EVENT_STANDARD, XMC_USIC_CH_RXFIFO_EVENT_ERROR, XMC_USIC_CH_RXFIFO_EVENT_ALTERNATE. |
Definition at line 1972 of file xmc_usic.h.
| void XMC_USIC_CH_RXFIFO_Configure | ( | XMC_USIC_CH_t *const | channel, |
| const uint32_t | data_pointer, | ||
| const XMC_USIC_CH_FIFO_SIZE_t | size, | ||
| const uint32_t | limit | ||
| ) |
| channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
| data_pointer | Start position inside the FIFO buffer. Range: 0 to 63. |
| size | Required size of the receive FIFO. Range: XMC_USIC_CH_FIFO_DISABLED, XMC_USIC_CH_FIFO_SIZE_2WORDS.. XMC_USIC_CH_FIFO_SIZE_64WORDS |
| limit | Threshold of receive FIFO filling level to be considered for generating events. Range: 0 to size -1. |
Definition at line 225 of file xmc_usic.c.
| __STATIC_INLINE void XMC_USIC_CH_RXFIFO_DisableEvent | ( | XMC_USIC_CH_t *const | channel, |
| const uint32_t | event | ||
| ) |
| channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
| event | Events to be disabled. Range: XMC_USIC_CH_RXFIFO_EVENT_CONF_STANDARD, XMC_USIC_CH_RXFIFO_EVENT_CONF_ERROR, XMC_USIC_CH_RXFIFO_EVENT_CONF_ALTERNATE. |
Definition at line 1797 of file xmc_usic.h.
| __STATIC_INLINE void XMC_USIC_CH_RXFIFO_EnableEvent | ( | XMC_USIC_CH_t *const | channel, |
| const uint32_t | event | ||
| ) |
| channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
| event | Events to be enabled. Multiple events can be bitwise OR combined. XMC_USIC_CH_RXFIFO_EVENT_CONF_t |
Note: API only enables the events. For interrupt generation, interrupt node must be configured and NVIC node must be enabled.
Definition at line 1773 of file xmc_usic.h.
| __STATIC_INLINE void XMC_USIC_CH_RXFIFO_Flush | ( | XMC_USIC_CH_t *const | channel | ) |
| channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
Definition at line 1863 of file xmc_usic.h.
| __STATIC_INLINE uint16_t XMC_USIC_CH_RXFIFO_GetData | ( | XMC_USIC_CH_t *const | channel | ) |
| channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
Definition at line 1846 of file xmc_usic.h.
| __STATIC_INLINE uint32_t XMC_USIC_CH_RXFIFO_GetEvent | ( | XMC_USIC_CH_t *const | channel | ) |
| channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
Note: Event status flags should be cleared by the user explicitly.
Definition at line 1946 of file xmc_usic.h.
| __STATIC_INLINE uint32_t XMC_USIC_CH_RXFIFO_GetLevel | ( | XMC_USIC_CH_t *const | channel | ) |
| channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
Definition at line 1922 of file xmc_usic.h.
| __STATIC_INLINE bool XMC_USIC_CH_RXFIFO_IsEmpty | ( | XMC_USIC_CH_t *const | channel | ) |
| channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
Definition at line 1902 of file xmc_usic.h.
| __STATIC_INLINE bool XMC_USIC_CH_RXFIFO_IsFull | ( | XMC_USIC_CH_t *const | channel | ) |
| channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
Definition at line 1882 of file xmc_usic.h.
| void XMC_USIC_CH_RXFIFO_SetInterruptNodePointer | ( | XMC_USIC_CH_t *const | channel, |
| const XMC_USIC_CH_RXFIFO_INTERRUPT_NODE_POINTER_t | interrupt_node, | ||
| const uint32_t | service_request | ||
| ) |
| channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
| interrupt_node | Node pointer representing the receive FIFO events. Range: XMC_USIC_CH_RXFIFO_INTERRUPT_NODE_POINTER_STANDARD, XMC_USIC_CH_RXFIFO_INTERRUPT_NODE_POINTER_ALTERNATE |
| service_request | The service request to be used for interrupt generation. Range: 0 to 5. |
Note: NVIC node should be explicitly enabled for the interrupt generation.
Definition at line 288 of file xmc_usic.c.
| void XMC_USIC_CH_RXFIFO_SetSizeTriggerLimit | ( | XMC_USIC_CH_t *const | channel, |
| const XMC_USIC_CH_FIFO_SIZE_t | size, | ||
| const uint32_t | limit | ||
| ) |
| channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
| size | Required size of the receive FIFO. Range: XMC_USIC_CH_FIFO_DISABLED, XMC_USIC_CH_FIFO_SIZE_2WORDS.. XMC_USIC_CH_FIFO_SIZE_64WORDS |
| limit | Threshold for receive FIFO filling level to be considered for generating events. Range: 0 to size -1. |
Definition at line 260 of file xmc_usic.c.
| XMC_USIC_CH_STATUS_t XMC_USIC_CH_SetBaudrate | ( | XMC_USIC_CH_t *const | channel, |
| uint32_t | rate, | ||
| uint32_t | oversampling | ||
| ) |
| channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
| rate | Desired baudrate. Range: minimum value = 100, maximum value depends on the peripheral clock frequency and oversampling. Maximum baudrate can be derived using the formula: (fperiph * 1023)/(1024 * oversampling) |
| oversampling | Required oversampling. The value indicates the number of time quanta for one symbol of data. This can be related to the number of samples for each logic state of the data signal. Range: 1 to 32. Value should be chosen based on the protocol used. |
Definition at line 120 of file xmc_usic.c.
Referenced by XMC_I2C_CH_SetBaudrate(), XMC_I2S_CH_SetBaudrate(), XMC_SPI_CH_Init(), XMC_SPI_CH_SetBaudrate(), XMC_UART_CH_Init(), and XMC_UART_CH_SetBaudrate().


| __STATIC_INLINE void XMC_USIC_CH_SetBRGInputClockSource | ( | XMC_USIC_CH_t *const | channel, |
| const XMC_USIC_CH_BRG_CLOCK_SOURCE_t | clock_source | ||
| ) |
| channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
| clock_source | clock source for the BRG. |
Definition at line 954 of file xmc_usic.h.
Referenced by XMC_USIC_CH_ConfigExternalInputSignalToBRG().

| __STATIC_INLINE void XMC_USIC_CH_SetDataOutputMode | ( | XMC_USIC_CH_t *const | channel, |
| const XMC_USIC_CH_DATA_OUTPUT_MODE_t | data_output_mode | ||
| ) |
| channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
| data_output_mode | Data output mode. Range: XMC_USIC_CH_DATA_OUTPUT_MODE_NORMAL, XMC_USIC_CH_DATA_OUTPUT_MODE_INVERTED |
Definition at line 1250 of file xmc_usic.h.
| __STATIC_INLINE void XMC_USIC_CH_SetFractionalDivider | ( | XMC_USIC_CH_t *const | channel, |
| const XMC_USIC_CH_BRG_CLOCK_DIVIDER_MODE_t | mode, | ||
| const uint16_t | step | ||
| ) |
| channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
| mode | divider mode XMC_USIC_CH_BRG_CLOCK_DIVIDER_MODE_t |
| step | divider XMC_USIC_CH_BRG_CLOCK_DIVIDER_MODE_NORMAL resulting divider = 1023 - step XMC_USIC_CH_BRG_CLOCK_DIVIDER_MODE_FRACTIONAL resulting divider = 1023 / step |
Definition at line 1072 of file xmc_usic.h.
| __STATIC_INLINE void XMC_USIC_CH_SetFrameLength | ( | XMC_USIC_CH_t *const | channel, |
| const uint8_t | frame_length | ||
| ) |
| channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
| frame_length | Number of bits in a frame. Range: minimum= 1, maximum= 0x3f. The maximum value for fixed frame size is 0x3f. e.g: For a frame length of 16, frame_length should be provided as 16. |
Definition at line 1094 of file xmc_usic.h.
Referenced by XMC_I2S_CH_SetFrameLength(), XMC_SPI_CH_SetFrameLength(), and XMC_UART_CH_SetFrameLength().

| __STATIC_INLINE void XMC_USIC_CH_SetInputSamplingFreq | ( | XMC_USIC_CH_t *const | channel, |
| const XMC_USIC_CH_INPUT_t | input, | ||
| const XMC_USIC_CH_INPUT_SAMPLING_FREQ_t | sampling_freq | ||
| ) |
| channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support.. |
| input | USIC channel input stage of type XMC_USIC_CH_INPUT_t. Range: XMC_USIC_CH_INPUT_DX0 to XMC_USIC_CH_INPUT_DX5 |
| sampling_freq | Sampling frequency value of type XMC_USIC_CH_INPUT_SAMPLING_FREQ_t. |
Definition at line 912 of file xmc_usic.h.
Referenced by XMC_UART_CH_SetInputSamplingFreq().

| __STATIC_INLINE void XMC_USIC_CH_SetInputSource | ( | XMC_USIC_CH_t *const | channel, |
| const XMC_USIC_CH_INPUT_t | input, | ||
| const uint8_t | source | ||
| ) |
| channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. | ||||||||||||||||
| input | USIC channel input stage of type XMC_USIC_CH_INPUT_t. Range: XMC_USIC_CH_INPUT_DX0 to XMC_USIC_CH_INPUT_DX5 | ||||||||||||||||
| source | Input source select for the input stage. The table below maps the enum value with the input channel.
|
Definition at line 708 of file xmc_usic.h.
Referenced by XMC_I2C_CH_SetInputSource(), XMC_I2S_CH_SetInputSource(), XMC_SPI_CH_SetInputSource(), and XMC_UART_CH_SetInputSource().

| __STATIC_INLINE void XMC_USIC_CH_SetInputTriggerCombinationMode | ( | XMC_USIC_CH_t *const | channel, |
| const XMC_USIC_CH_INPUT_t | input, | ||
| const XMC_USIC_CH_INPUT_COMBINATION_MODE_t | combination_mode | ||
| ) |
| channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support.. |
| input | USIC channel input stage of type XMC_USIC_CH_INPUT_t. Range: XMC_USIC_CH_INPUT_DX0 to XMC_USIC_CH_INPUT_DX5 |
| combination_mode | Combination mode value of type XMC_USIC_CH_INPUT_COMBINATION_MODE_t. |
Definition at line 934 of file xmc_usic.h.
Referenced by XMC_USIC_CH_ConfigExternalInputSignalToBRG().

| void XMC_USIC_CH_SetInterruptNodePointer | ( | XMC_USIC_CH_t *const | channel, |
| const XMC_USIC_CH_INTERRUPT_NODE_POINTER_t | interrupt_node, | ||
| const uint32_t | service_request | ||
| ) |
| channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
| interrupt_node | Interrupt node pointer to be configured. Range: XMC_USIC_CH_INTERRUPT_NODE_POINTER_TRANSMIT_SHIFT, XMC_USIC_CH_INTERRUPT_NODE_POINTER_TRANSMIT_BUFFER etc. |
| service_request | Service request number. Range: 0 to 5. |
Definition at line 272 of file xmc_usic.c.
Referenced by XMC_I2C_CH_SelectInterruptNodePointer(), XMC_I2C_CH_SetInterruptNodePointer(), XMC_I2S_CH_SelectInterruptNodePointer(), XMC_I2S_CH_SetInterruptNodePointer(), XMC_SPI_CH_SelectInterruptNodePointer(), XMC_SPI_CH_SetInterruptNodePointer(), XMC_UART_CH_SelectInterruptNodePointer(), and XMC_UART_CH_SetInterruptNodePointer().

| __STATIC_INLINE void XMC_USIC_CH_SetMclkOutputPassiveLevel | ( | XMC_USIC_CH_t *const | channel, |
| const XMC_USIC_CH_BRG_MASTER_CLOCK_PASSIVE_LEVEL_t | passive_level | ||
| ) |
| channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
| passive_level | Passive level for the master clock output. Range: XMC_USIC_CH_BRG_MASTER_CLOCK_PASSIVE_LEVEL_0, XMC_USIC_CH_BRG_MASTER_CLOCK_PASSIVE_LEVEL_1. |
Definition at line 2022 of file xmc_usic.h.
| __STATIC_INLINE void XMC_USIC_CH_SetMode | ( | XMC_USIC_CH_t *const | channel, |
| const XMC_USIC_CH_OPERATING_MODE_t | mode | ||
| ) |
| channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
| mode | USIC channel operation mode. Range: XMC_USIC_CH_OPERATING_MODE_IDLE, XMC_USIC_CH_OPERATING_MODE_SPI, XMC_USIC_CH_OPERATING_MODE_UART, XMC_USIC_CH_OPERATING_MODE_I2S, XMC_USIC_CH_OPERATING_MODE_I2C. |
Definition at line 2076 of file xmc_usic.h.
Referenced by XMC_I2C_CH_Start(), XMC_I2S_CH_Start(), XMC_I2S_CH_Stop(), XMC_SPI_CH_Start(), XMC_SPI_CH_Stop(), and XMC_UART_CH_Stop().

| __STATIC_INLINE void XMC_USIC_CH_SetPassiveDataLevel | ( | XMC_USIC_CH_t *const | channel, |
| const XMC_USIC_CH_PASSIVE_DATA_LEVEL_t | passive_level | ||
| ) |
| channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
| passive_level | Value of passive level for the channel. Range: XMC_USIC_CH_PASSIVE_DATA_LEVEL0, XMC_USIC_CH_PASSIVE_DATA_LEVEL1 |
Definition at line 1387 of file xmc_usic.h.
| __STATIC_INLINE void XMC_USIC_CH_SetShiftDirection | ( | XMC_USIC_CH_t *const | channel, |
| const XMC_USIC_CH_SHIFT_DIRECTION_t | shift_direction | ||
| ) |
| channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
| word_length | Number of bits to be configured for a data word. Range: minimum= 1, maximum= 16. e.g: For word length of 8, word_length should be provided as 8. |
Definition at line 1038 of file xmc_usic.h.
| __STATIC_INLINE void XMC_USIC_CH_SetStartTransmisionMode | ( | XMC_USIC_CH_t *const | channel, |
| const XMC_USIC_CH_START_TRANSMISION_MODE_t | start_transmision_mode | ||
| ) |
| channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
| start_transmision_mode | Transmission mode to be enabled. Range: XMC_USIC_CH_START_TRANSMISION_DISABLED, XMC_USIC_CH_START_TRANSMISION_ON_TDV, XMC_USIC_CH_START_TRANSMISION_ON_TDV_DX2S_0, XMC_USIC_CH_START_TRANSMISION_ON_TDV_DX2S_1 |
Definition at line 1229 of file xmc_usic.h.
Referenced by XMC_I2C_CH_DisableDataTransmission(), XMC_I2C_CH_EnableDataTransmission(), XMC_I2S_CH_DisableDataTransmission(), XMC_I2S_CH_EnableDataTransmission(), XMC_SPI_CH_DisableDataTransmission(), XMC_SPI_CH_EnableDataTransmission(), XMC_UART_CH_DisableDataTransmission(), and XMC_UART_CH_EnableDataTransmission().

| __STATIC_INLINE void XMC_USIC_CH_SetTransmitBufferStatus | ( | XMC_USIC_CH_t *const | channel, |
| const XMC_USIC_CH_TBUF_STATUS_SET_t | transmit_buffer_status | ||
| ) |
| channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
| transmit_buffer_status | clearing or setting the TDV flag. |
Definition at line 1366 of file xmc_usic.h.
| __STATIC_INLINE void XMC_USIC_CH_SetWordLength | ( | XMC_USIC_CH_t *const | channel, |
| const uint8_t | word_length | ||
| ) |
| channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
| word_length | Number of bits to be configured for a data word. Range: minimum= 1, maximum= 16. e.g: For word length of 8, word_length should be provided as 8. |
Definition at line 1017 of file xmc_usic.h.
Referenced by XMC_I2S_CH_SetWordLength(), XMC_SPI_CH_SetWordLength(), and XMC_UART_CH_SetWordLength().

| __STATIC_INLINE void XMC_USIC_CH_TriggerServiceRequest | ( | XMC_USIC_CH_t *const | channel, |
| const uint32_t | service_request_line | ||
| ) |
| channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
| service_request_line | service request number of the event to be triggered. Range: 0 to 5. |
Definition at line 1348 of file xmc_usic.h.
Referenced by XMC_I2C_CH_TriggerServiceRequest(), XMC_I2S_CH_TriggerServiceRequest(), XMC_SPI_CH_TriggerServiceRequest(), and XMC_UART_CH_TriggerServiceRequest().

| __STATIC_INLINE void XMC_USIC_CH_TXFIFO_ClearEvent | ( | XMC_USIC_CH_t *const | channel, |
| const uint32_t | event | ||
| ) |
| channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
| event | Transmit FIFO events to be cleared. Range: XMC_USIC_CH_TXFIFO_EVENT_STANDARD, XMC_USIC_CH_TXFIFO_EVENT_ERROR. |
Definition at line 1701 of file xmc_usic.h.
| void XMC_USIC_CH_TXFIFO_Configure | ( | XMC_USIC_CH_t *const | channel, |
| const uint32_t | data_pointer, | ||
| const XMC_USIC_CH_FIFO_SIZE_t | size, | ||
| const uint32_t | limit | ||
| ) |
| channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
| data_pointer | Start position inside the FIFO buffer. Range: 0 to 63. |
| size | Required size of the transmit FIFO. Range: XMC_USIC_CH_FIFO_DISABLED, XMC_USIC_CH_FIFO_SIZE_2WORDS.. XMC_USIC_CH_FIFO_SIZE_64WORDS |
| limit | Threshold of transmit FIFO filling level to be considered for generating events. Range: 0 to size -1. |
Definition at line 203 of file xmc_usic.c.
| __STATIC_INLINE void XMC_USIC_CH_TXFIFO_DisableEvent | ( | XMC_USIC_CH_t *const | channel, |
| const uint32_t | event | ||
| ) |
| channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
| event | Events to be disabled. XMC_USIC_CH_TXFIFO_EVENT_CONF_t |
Definition at line 1484 of file xmc_usic.h.
| __STATIC_INLINE void XMC_USIC_CH_TXFIFO_EnableEvent | ( | XMC_USIC_CH_t *const | channel, |
| const uint32_t | event | ||
| ) |
| channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
| event | Events to be enabled. Multiple events can be bitwise OR combined. XMC_USIC_CH_TXFIFO_EVENT_CONF_t |
Note: API only enables the events. For interrupt generation, interrupt node must be configured and NVIC node must be enabled.
Definition at line 1462 of file xmc_usic.h.
| __STATIC_INLINE void XMC_USIC_CH_TXFIFO_Flush | ( | XMC_USIC_CH_t *const | channel | ) |
| channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
Definition at line 1597 of file xmc_usic.h.
| __STATIC_INLINE uint32_t XMC_USIC_CH_TXFIFO_GetEvent | ( | XMC_USIC_CH_t *const | channel | ) |
| channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
Note: Event status flags should be cleared by the user explicitly.
Definition at line 1677 of file xmc_usic.h.
| __STATIC_INLINE uint32_t XMC_USIC_CH_TXFIFO_GetLevel | ( | XMC_USIC_CH_t *const | channel | ) |
| channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
Definition at line 1655 of file xmc_usic.h.
| __STATIC_INLINE bool XMC_USIC_CH_TXFIFO_IsEmpty | ( | XMC_USIC_CH_t *const | channel | ) |
| channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
Definition at line 1636 of file xmc_usic.h.
| __STATIC_INLINE bool XMC_USIC_CH_TXFIFO_IsFull | ( | XMC_USIC_CH_t *const | channel | ) |
| channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
Definition at line 1616 of file xmc_usic.h.
| __STATIC_INLINE void XMC_USIC_CH_TXFIFO_PutData | ( | XMC_USIC_CH_t *const | channel, |
| const uint16_t | data | ||
| ) |
| channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
| data | Data to be transmitted. Range: 16bit unsigned data. minimum= 0, maximum= 65535 |
Definition at line 1532 of file xmc_usic.h.
| __STATIC_INLINE void XMC_USIC_CH_TXFIFO_PutDataFLEMode | ( | XMC_USIC_CH_t *const | channel, |
| const uint16_t | data, | ||
| const uint32_t | frame_length | ||
| ) |
| channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
| data | Data to be transmitted. |
| frame_length | Frame length to be configured while transmitting the data. Range: minimum= 0, maximum= 31. e.g: For a frame length of 16, set frame_length as 15. |
Definition at line 1554 of file xmc_usic.h.
| __STATIC_INLINE void XMC_USIC_CH_TXFIFO_PutDataHPCMode | ( | XMC_USIC_CH_t *const | channel, |
| const uint16_t | data, | ||
| const uint32_t | frame_length | ||
| ) |
| channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
| data | Data to be transmitted. |
| frame_length | Frame length to be configured while transmitting the data. Range: minimum= 0, maximum= 31. e.g: For a frame length of 16, set frame_length as 15. |
Definition at line 1578 of file xmc_usic.h.
| void XMC_USIC_CH_TXFIFO_SetInterruptNodePointer | ( | XMC_USIC_CH_t *const | channel, |
| const XMC_USIC_CH_TXFIFO_INTERRUPT_NODE_POINTER_t | interrupt_node, | ||
| const uint32_t | service_request | ||
| ) |
| channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
| interrupt_node | Node pointer representing the transmit FIFO events. Range: XMC_USIC_CH_TXFIFO_INTERRUPT_NODE_POINTER_STANDARD, XMC_USIC_CH_TXFIFO_INTERRUPT_NODE_POINTER_ALTERNATE |
| service_request | The service request to be used for interrupt generation. Range: 0 to 5. |
Note: NVIC node should be explicitly enabled for the interrupt generation.
Definition at line 280 of file xmc_usic.c.
| void XMC_USIC_CH_TXFIFO_SetSizeTriggerLimit | ( | XMC_USIC_CH_t *const | channel, |
| const XMC_USIC_CH_FIFO_SIZE_t | size, | ||
| const uint32_t | limit | ||
| ) |
| channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
| size | Required size of the transmit FIFO. Range: XMC_USIC_CH_FIFO_DISABLED, XMC_USIC_CH_FIFO_SIZE_2WORDS.. XMC_USIC_CH_FIFO_SIZE_64WORDS |
| limit | Threshold for transmit FIFO filling level to be considered for generating events. Range: 0 to size -1. |
Definition at line 245 of file xmc_usic.c.
| __STATIC_INLINE void XMC_USIC_CH_WriteToTBUF | ( | XMC_USIC_CH_t *const | channel, |
| const uint16_t | data | ||
| ) |
| channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
| data | Data to be transmitted. Range: 16bit unsigned data. minimum= 0, maximum= 65535 |
Definition at line 974 of file xmc_usic.h.
Referenced by L0_Eeprom_SPI_16Bit_Senden(), and L0_Eeprom_SPI_8Bit_Senden().

| __STATIC_INLINE void XMC_USIC_CH_WriteToTBUFTCI | ( | XMC_USIC_CH_t *const | channel, |
| const uint16_t | data, | ||
| const uint32_t | transmit_control_information | ||
| ) |
| channel | Pointer to USIC channel handler of type XMC_USIC_CH_t Range: XMC_USIC0_CH0, XMC_USIC0_CH1 to XMC_USIC2_CH1 based on device support. |
| data | Data to be transmitted. |
| transmit_control_information | transmit control information to be configured while transmitting the data. Range: minimum= 0, maximum= 31. |
Definition at line 995 of file xmc_usic.h.
| void XMC_USIC_Disable | ( | XMC_USIC_t *const | usic | ) |
| usic | Pointer to USIC module handler of type XMC_USIC_t. Range: XMC_USIC0 to XMC_USIC2 based on device support. |
Definition at line 335 of file xmc_usic.c.

| void XMC_USIC_Enable | ( | XMC_USIC_t *const | usic | ) |
| usic | Pointer to USIC module handler of type XMC_USIC_t. Range: XMC_USIC0 to XMC_USIC2 based on device support. |
Definition at line 296 of file xmc_usic.c.
Referenced by XMC_USIC_CH_Enable().


| __STATIC_INLINE bool XMC_USIC_IsChannelValid | ( | const XMC_USIC_CH_t *const | channel | ) |
Definition at line 568 of file xmc_usic.h.
Referenced by XMC_USIC_CH_Enable().

| __STATIC_INLINE bool XMC_USIC_IsModuleValid | ( | const XMC_USIC_t *const | module | ) |
Definition at line 553 of file xmc_usic.h.